 <#include "../studentNavigation/index.html">
<#if message?exists>
	${message}
</#if>
<style type="text/css">
.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
.ui-timepicker-div dl { text-align: left; }
.ui-timepicker-div dl dt { float: left; clear:left; padding: 0 0 0 5px; }
.ui-timepicker-div dl dd { margin: 0 10px 10px 45%; }
.ui-timepicker-div td { font-size: 90%; }
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }

.ui-timepicker-rtl{ direction: rtl; }
.ui-timepicker-rtl dl { text-align: right; padding: 0 5px 0 0; }
.ui-timepicker-rtl dl dt{ float: right; clear: right; }
.ui-timepicker-rtl dl dd { margin: 0 45% 10px 10px; }
</style>
 <script type="text/javascript" src="${contextPath}/assets/js/jquery-1.11.0.min.js"></script>
<!--  <link type="text/css" rel="stylesheet" href="${contextPath}/assets/css/admin.css" />  -->
<link rel="stylesheet" type="text/css" href="${contextPath}/assets/css/jquery-ui.css" />
<script type="text/javascript" src="${contextPath}/assets/js/jquery-ui-1.10.4.custom.min.js"></script>
<script type="text/javascript" src="${contextPath}/assets/js/jquery.ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="${contextPath}/assets/js/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript" src="${contextPath}/assets/js/jquery-ui-timepicker-zh-CN.js"></script>

        <script src="${contextPath}/assets/js/laydate.js"></script>  
		<link href="${contextPath}/assets/css/laydate.css" rel="stylesheet" type="text/css" />
		<link href="${contextPath}/assets/css/laydateColor/laydate.css" rel="stylesheet" type="text/css" />
				<div class="main-content">
					<div class="breadcrumbs" id="breadcrumbs">
						<script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>

						<ul class="breadcrumb">
							<li>
								<i class="icon-home home-icon"></i>
								<a href="${contextPath}/teacher">教学日历服务平台学生首页</a>
							</li>
							<li class="active">个人日历</li>
						</ul><!-- .breadcrumb -->
					</div>
                     <div class="page-content">
						<div class="page-header" style="padding-bottom:45px;">
							
							<button onclick="overFind2()" class="button_blue" style="margin-left:3%;">新增日历</button >
						

						</div><!-- /.page-header -->

						<div class="row">
							<div class="col-xs-12">
							

							<table style="font-size:17px;" cellspacing="0" cellpadding="0">
      							<tr>
        							<th>标题</th>
        							<th>开始时间</th>
        							<th>结束时间</th>
        							<th>事件</th>
        							<th>编辑 </th>
     							</tr>
      								<#if listAll?exists>
      								<#list listAll as task>
      								<tr>
      									<td>${task.taskTitle!}</td>
      									<td>${task.taskStart!}</td>
      									<td>${task.taskEnd!}</td>
      									<td>${task.taskContent!}</td>
      									<td><a href="${contextPath}/student/taskManage/deleteTask/${task.pkTask}">删除</a></td>
      								</tr>
      								</#list>
      								</#if>
    						</table>		
    									 
						<div align="center">
						<#if page?exists>	
						共 ${page.totalPageCount!} 页第
							${page.pageNow!} 页
							
						<a href="${contextPath}/student/taskManage/?pageNow=1">首页</a>
						 <#if (page.pageNow-1) gt 0 >
								<a href="${contextPath}/student/taskManage/?pageNow=${page.pageNow - 1}">上一页</a>
						 </#if>
							<#if page.pageNow-1 lte 0 >
								<a href="${contextPath}/student/taskManage/?pageNow=1">上一页</a>
							</#if> 
				 			<#if page.totalPageCount==0>
								<a href="${contextPath}/student/taskManage/?pageNow=${page.pageNow}">下一页</a>
							</#if>
							<#if ((page.pageNow + 1) lt page.totalPageCount) >
								<a href="${contextPath}/student/taskManage/?pageNow=${page.pageNow + 1}">下一页</a>
							</#if>
							<#if (page.pageNow + 1 gte page.totalPageCount) >
								<a href="${contextPath}/student/taskManage/?pageNow=${page.totalPageCount}">下一页</a>
							</#if>
					
							<#if (page.totalPageCount==0)>
								<a href="${contextPath}/student/taskManage/?pageNow=${page.pageNow}">尾页</a>
							<#else>
								<a href="${contextPath}/student/taskManage/?pageNow=${page.totalPageCount}">尾页</a>
							</#if>
						</#if>
	                       </div>
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
					
					<div id="modal-overlay2">
						<div class="modal-data2">

							<div class="login" style="width:500px;height:400px;">
							<form action="${contextPath}/student/taskManage/taskImport" method="post">
								<h2 style="color:#2795DC;margin-left:5%;font-weight:700;font-size:2em;">新增日历</h2>
								<hr>

								 <div class="control-group" style="margin-bottom:15px;">
									
									<div class="controls">
										<input type="text" name="taskTitle" style="width:250px;" class="input-medium disabled" placeholder="标题">		
									</div>
														
								</div>
								<div class="control-group" style="margin-bottom:15px;">
									
									<div class="controls">
									    <input name="taskStart" type="text" style="width:250px;"class="text-box" value="" placeholder="开始时间≥当前时间"  readonly="readonly" style="cursor:pointer;"/>
										<!-- <input onClick="laydate()" name="taskStart " style="width:250px;" class="input-medium2 disabled" placeholder="开始时间">		 -->
									</div>							
								</div>
									<div class="control-group" style="margin-bottom:15px;">
									
									<div class="controls">
									     <input name="taskEnd" type="text" style="width:250px;"class="text-box" value="" placeholder="结束时间>开始时间" title="结束时间>开始时间" readonly="readonly" style="cursor:pointer;"/>
										<!-- <input onClick="laydate()" name="taskStart " style="width:250px;" class="input-medium2 disabled" placeholder="结束时间">		 -->
									</div>							
								</div>
								
								<div class="control-group" style="margin-bottom:15px;">
									
								<div class="controls">
								<textarea name="taskContent" style="width:250px;" data-maxsize="140" data-output="tips"  class="limited" style="resize: none;"></textarea>
                                 </br>
                               <span style="margin-right:-32%">(限制140字)</span>
									</div>							
								</div>
								
								
							
								<button type="submit" class="am-btn am-btn-secondary" style="margin-top:20px;">保存</button>
								<button type="button" class="am-btn am-btn-secondary" style="margin-left:20%;margin-top:20px;" onclick="closeLogin2()">关闭</button>				
								</form>
								
								
							</div>
						</div>
					</div>
					<script type="text/javascript">
						function overFind2(){     
   							var e1 = document.getElementById('modal-overlay2');     
   								e1.style.visibility = (e1.style.visibility == "visible")? "hidden" : "visible";
    						$(".modal-data2").animate({right:'30%'});
  						}
  						function closeLogin2(){    
   							var e1 = document.getElementById('modal-overlay2');     
   								e1.style.visibility = "hidden";
  						}
  		
  						$( "input[name='taskStart'],input[name='taskEnd']" ).datetimepicker();
  		
					</script>
					
		
			</div><!-- /.main-container-inner -->

			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="icon-double-angle-up icon-only bigger-110"></i>
			</a>
		</div><!-- /.main-container -->

		